package jgespres;

import java.sql.*;
import java.util.logging.*;

/**
 * Gestion d'un poste du planning
 * 
 * @author Philippe Guerreiro
 * @version 2.0
 */
public class PlanningPostId {
    public Date date;
    public int stdId;
    // Logger
    private final Logger logger = Logger.getLogger("jgespres");
    
    PlanningPostId(Date date, int stdId) {
        this.date = date;
        this.stdId = stdId;
    }
    
    public boolean equals(Object obj) {
        return date.equals(((PlanningPostId)obj).date) && (stdId == ((PlanningPostId)obj).stdId);
    }
    
    public int hashCode(){
		return date.hashCode() + stdId;
    } 
}
